//
//  EditDataTitleCell.m
//  NiubilityProject
//
//  Created by Apple on 2017/11/29.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "EditDataTitleCell.h"
@interface EditDataTitleCell ()

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *space1;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *space2;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *space3;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *space4;


@end

@implementation EditDataTitleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.space1.constant = self.space2.constant = self.space3.constant = self.space4.constant = kRealValue(10);
}

- (void)drawRect:(CGRect)rect
{
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextSetFillColorWithColor(context, [UIColor clearColor].CGColor);
    CGContextFillRect(context, rect);
    //下分割线
    CGContextSetStrokeColorWithColor(context, JS_colorWithHex(0xe7e7e7).CGColor);
    CGContextStrokeRect(context, CGRectMake(0, rect.size.height, rect.size.width, flatf(1))); //SINGLE_LINE_HEIGHT 为线的高度
}
@end
